<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>员工姓名</label>
              
              <input class="form-control" name="name" placeholder="请输入员工姓名" value="{$info['name']|default=''}" type="text">
            </div>
          </div>
            
          

          <div class="col-md-6">
            <div class="form-group">
              <label>出勤次数</label>
              <input class="form-control" name="time" placeholder="请输入出勤次数" value="{$info['time']|default=''}" type="text">
            </div>
          </div> 
            
          <div class="col-md-6">
            <div class="form-group">
              <label>请假次数</label>
              <input class="form-control" name="leave" placeholder="请输入请假次数" value="{$info['leave']|default=''}" type="text">
            </div>
          </div>
           
          <div class="col-md-6">
            <div class="form-group">
              <label>性别</label>
              <select name="sex" class="form-control">
                    <option value="0" {notempty name='info'} if condition="$info['sex'] eq 0"} selected="selected" {/if}{/notempty}>男</option>
                    <option value="1" {notempty name='info'} {if condition="$info['sex'] eq 1"} selected="selected" {/if}{/notempty}>女</option>
                </select> 
               </div>
          </div> 

          <div class="col-md-6">
            <div class="form-group">
              <label>图片</label>
              {assign name="pic" value="$vo.pic|default='0'" /}

              {:widget('file/index', ['name' => 'pic', 'value' => $pic, 'type' => 'img'])}
            </div>
          </div>

        
          </div>
        </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
      </div>
        
      </div>

</form>